gdk: Add some parameter checking
authorMatthias Clasen <mclasen@redhat.com>
Fri, 17 Jul 2015 22:37:20 +0000 (18:37 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 17 Jul 2015 22:37:20 +0000 (18:37 -0400)
This may help coverity recognize that we're not called with
invalid combinations.

gdk/gdkwindow.c

index af3d17a0d5190e487481d07b2350289d1727939b..f6516e5130d55bbe6c3e284e29f3355924b48d57 100644 (file)
@@ -9872,6 +9872,8 @@ gdk_window_set_geometry_hints (GdkWindow         *window,
                               const GdkGeometry *geometry,
                               GdkWindowHints     geom_mask)
 {
+  g_return_if_fail (geometry != NULL || geom_mask == 0);
+
   GDK_WINDOW_IMPL_GET_CLASS (window->impl)->set_geometry_hints (window, geometry, geom_mask);
 }